WriteRecordToFile

Definition:

WriteRecordToFile(filename, datasource)

 

Description:

Append the current record for a specified Data Source to a local file on the mobile device.

 

Platforms:

Android, Universal Windows, Windows Desktop

 

Parameters:

filename - required

 

datasource - required

Specifies the Data Source whose current record will be written to the file – click here for the format of this parameter.

 

Returns:

nothing

 

Notes:

Appends the current record in the specified Data Source in comma-separated-values (CSV) format to the specified file. If the file is empty, the column names will be written, also in CSV format, as the first line of the file. If the file doesn't exist it will be created, so if you want to overwrite an existing file instead of appending data to it, you can delete the existing file first using the DeleteFile Method.